{include file="header.tpl"}
<link href="{$smarty.const.CSS}css.css" type="text/css" rel="stylesheet" />

</head>
<BODY>

<div class="kuang" backgroundcolor="#99ccff">
<span>主属性添加</span>

{foreach $type_main as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />
<span>品牌属性添加</span>

{foreach $type_brand as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />
<span>衣服属性添加</span>

{foreach $type_clothing as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />
<span>手表属性添加</span>

{foreach $type_watch as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />
<span>珠宝属性添加</span>

{foreach $type_jewelry as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />

<span>眼镜属性添加</span>

{foreach $type_glass as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />

<span>配件配饰属性添加</span>

{foreach $type_accessory as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />

<span>包属性添加</span>

{foreach $type_bag as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />

<span>鞋属性添加</span>

{foreach $type_shoe as $value}
 <a href="admin.php?belongto={$value@key}">{$value}</a>&nbsp;
{/foreach}
<br />
</div>
<form action="admin.php?belongto={$smarty.get.belongto}" method="post">
<input type="hidden" name="belongto" value="{$smarty.get.belongto}" />
添加&nbsp;<span class="point">{$type_main.{$smarty.get.belongto}}{$type_jewelry.{$smarty.get.belongto}}
{$type_clothing.{$smarty.get.belongto}}{$type_bag.{$smarty.get.belongto}}
{$type_watch.{$smarty.get.belongto}}{$type_shoe.{$smarty.get.belongto}}{$type_brand.{$smarty.get.belongto}}
{$type_glass.{$smarty.get.belongto}}{$type_accessory.{$smarty.get.belongto}}
</span>&nbsp;的子属性
<input type="text" name="typename" style="width:150px;"/>
<input type="submit" value="添加"/>{if $error}<span style="color:red;">{$error}</span>{/if}
</form>
<div class="kuang">
{if $ceil}
<span class="kuang_title">
已有子属性
</span><br/>
{foreach $ceil as $value}
 {$value.typename}<a href="deltype.php?id={$value.id}"><img border="0" src="{$smarty.const.IMAGE}b_drop.png"/></a>&nbsp;
{/foreach}
{else}
没有子属性
{/if}
</div>

<div class="kuang">
<span class="kuang_title">用户管理</span><br/>
<table class="st_table">
<tr><td>用户名</td><td>姓名</td><td>电话</td><td>邮箱</td><td>注册时间</td><td>操作</td></tr>
{foreach $user as $value}
<tr><td>{$value.username}</td><td>{$value.realname}</td><td>{$value.phone}</td><td>{$value.email}</td><td>{$value.time}</td>
<td><a href="admin.php?belongto=season&userid={$value.id}&turn={if $value.status eq 'on'}off{else}on{/if}">{if $value.status eq 'on'}关闭{else}激活{/if}</a>
</td></tr>
{/foreach}
</table>
</div>

<div class="kuang">
<span class="kuang_title">用户检查&nbsp;<a target="_blank" href="check.php">检查全部</a></span><br/>
{foreach $usercheck as $value}
{$value.username}&nbsp;<a target="_blank" href="check.php?id={$value.id}">检查</a>
{/foreach}<br/>
<span class="kuang_title">品牌维护&nbsp;<a target="_blank" href="brand.php">添加</a>&nbsp;<a target="_blank" href="brand_check.php">查看</a></span><br/>
</div>


{include file="footer.tpl"}